package lab02.test04;

public class Staff {

    //定义学生姓名，号码，基础工资，并将其私有化
   private String name;
   private   String num;
   private double baseSalary;

   //构造方法
    public Staff(){}//无参构造


   //有参构造
    public Staff(String name,String num,double baseSalary){
        this.name=name;
        this.baseSalary=baseSalary;
        this.num=num;


    }

        //获取员工号码
    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    //获取员工基础工资

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }




    //获取员工姓名

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }




}


